<?php
/* This is preferable a Controller */ 


require_once("./FormExample.php");

$form = new ProfileExampleForm($_REQUEST);
$form->include_jquery_helper = false;

if( $form->is_valid() ) {
    echo "Form is Valid, go on saving...";
    $form->save();
    
}

?>

<style>
form p, form p input {
    font:1em/1.5em bold normal "Arial, Trebuchet";
    color:#444;
}
form input.FancyField {
    color:green;
}
form p label {
    float:left;
    margin-right:80px;
    width:80px;
}
form div.error_container {
    margin-top:-10px;
    margin-left:158px;
    color:red;
}
</style>


<strong>Testing MadsPhpForm</strong>

<div style="width:700px;">

<form action="" method="get">
<?=$form->as_p(); ?>
<p>
    <input type="submit">
</p>
</form>
</div>

